//
//  IncomeDetailTableViewCell.m
//  XingHeHuiJu
//
//  Created by 于顺燊 on 2018/11/8.
//  Copyright © 2018年 cywkj. All rights reserved.
//

#import "IncomeDetailTableViewCell.h"

@implementation IncomeDetailTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(IncomeDetailInfo *)model {
	if (_model != model) {
		_model = model;
		self.income.text = [NSString stringWithFormat:@"%.2lf", model.i_income.floatValue/100];
		self.platformGet.text = [NSString stringWithFormat:@"%.2lf",model.p_income.floatValue/100];
		self.rate.text = [NSString stringWithFormat:@"%@%%",model.profit_sharing];
		self.orderMoney.text = [NSString stringWithFormat:@"%.2lf",model.total_price.floatValue/100];
		self.orderNum.text = model.order_no;
		self.itemName.text = model.title;
		self.dateStr.text = model.create_time;
	}
}

- (void)setFrame:(CGRect)frame
{
	frame.origin.y += 10;
	
	frame.size.height -= 10;
	
	[super setFrame:frame];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
